package com.qlyl.modules.information.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qlyl.common.api.vo.Result;
import com.qlyl.common.system.base.service.JeecgService;
import com.qlyl.modules.information.entity.Consumers;
import com.qlyl.modules.information.entity.EthTransaction;

public interface IEthTransactionService extends JeecgService<EthTransaction> {

    /**
     * 添加一笔eth交易
     * @param ethTransaction
     * @return
     */
    Result add(EthTransaction ethTransaction);

    /**
     * 把交易的状态修改为上链
     * @param transactionHash
     * @return
     */
    Result modifyStatusOnSuccess(String transactionHash);

    IPage<EthTransaction> selectAndConsumers(Page<EthTransaction> page, String userId);
}
